<template>
	<view class="header" @click="toSearch">
		<view class="inner">
			<icon type="search" size="16" color="#bbb" />
			<text>搜索</text>
		</view>
	</view>
</template>

<script>
	export default{
		methods:{
			// 跳转到搜索页面
			toSearch(){
				uni.navigateTo({
					url:'/pages/search/search'
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.header {
		height: 100rpx;
		background-color: #eb4450;
		display: flex;
		justify-content: center;
		align-items: center;

		.inner {
			height: 60rpx;
			width: 718rpx;
			border-radius: 8rpx;
			background-color: #fff;
			display: flex;
			justify-content: center;
			align-items: center;

			icon {
				marign-top: 4rpx;
			}

			text {
				color: #bbb;
				font-size: 28rpx;
				margin-left: 16rpx;
			}
		}
	}
</style>
